<?php
    header('Content-type: text/xml');
    echo '<?xml version="1.0" encoding="UTF-8"?>';
 
    echo '<Response>';
 
    $user_pushed = (int) ($_REQUEST['Digits']);
 
    if ($user_pushed == 1)
    {
        echo '<Say>You are now joining the conference room.</Say>';
        echo '<Dial callerId="+13055872291"><Conference>DTMFConference</Conference></Dial>';
    } else if ($user_pushed == 2)
    {
        echo '<Say>You pressed 2 to hear other options.</Say>';
        echo '<Say>But currently we do not have other options.</Say>';
    } else if ($user_pushed == 3)
    {
        echo '<Say>To reach us please visit our website RESTCOMM.COM.</Say>';
    } else {
        // We'll implement the rest of the functionality in the 
        // following sections.
        echo "<Say>You pressed '.$user_pushed.'.</Say>";
        echo "<Say>But i don't know what to do with that.</Say>";
    }
 
    echo '</Response>';
?>